﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WiiGeeDotNet.logic;

namespace WiiGeeDotNet.events
{
  public class GestureEvent : EventArgs
  {
    /// <summary>
    /// Id of gesture
    /// </summary>
    public int Id
    {
      get;
      set;
    }

    /// <summary>
    /// Name of gesture
    /// </summary>
    public String Name
    {
      get;
      set;
    }

    /// <summary>
    /// Probability that this gesture has been recognised
    /// </summary>
    public double Probability
    {
      get;
      set;
    }

    /// <summary>
    /// Create a GestureEvent
    /// </summary>
    /// <param name="_id">A gesture ID for identifying a gesture. </param>
    /// <param name="_probability">The Bayes-Classifier calculated probability.</param>
    public GestureEvent(int _id, double _probability)
    {
      this.Id = _id;
      this.Probability = _probability;
    }

    public GestureEvent(int _id, String _name)
    {
      this.Id = _id;
      this.Name = _name;
    }

    public GestureEvent(int _id, String _name, double _probability)
    {
      this.Id = _id;
      this.Name = _name;
      this.Probability = _probability;
    }

    public override string ToString()
    {
      return this.Id + (Name != null ? "(" + Name + ")" : "");
    }
  }
}
